package com.xuanwu.service;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import com.xuanwu.core.CoreParam;

public abstract class BaseService {

	protected Properties tableConfProp;

	protected String paramPath;

	public BaseService() {
		tableConfProp = new Properties();
		try {
			InputStream in = BaseService.class.getClassLoader().getResourceAsStream(CoreParam.TABLE_CONFIG_NAME);
			tableConfProp.load(in);
			paramPath = tableConfProp.getProperty(CoreParam.QUERY_PARAM_PATH_KEY);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}
